package com.example.travel.domain.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @Author : LinQingLiang
 * @file : RegisterUserVo.java
 * @Since : 2023/1/23 14:39
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterUserVo {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户id")
    private Integer id;

    @ApiModelProperty("头像")
    private String avatarUrl;

    @ApiModelProperty("用户名")
    @NotBlank
    private String username;

    @ApiModelProperty("密码")
    @NotBlank
    private String password;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("验证码")
    private String code;

    @ApiModelProperty("验证类型")
    private Integer type;

    @ApiModelProperty("用户角色")
    private String role;

    @ApiModelProperty("手机号码")
    private String phone;
}
